<template>
    <!-- 里面留了一个插槽 -->
   <TabBar>
    <!-- 里面留了一个插槽 -->
    <!-- 在这里path="/home" 是当成字符串 传过去所以不需要进行属性绑定-->
     <TabBarItem path="/home" teaa="123" activeColor="green">
       <img src="~assets/img/tabbar/home.svg" slot="item-icon" alt="">
       <img src="~assets/img/tabbar/home_active.svg" slot="item-icon-active" alt="">
       <div slot="item-text">首页</div>
     </TabBarItem>
     <TabBarItem path="/category" activeColor="yellow">
       <img src="@/assets/img/tabbar/category.svg" slot="item-icon" alt="">
       <img src="@/assets/img/tabbar/category_active.svg" slot="item-icon-active" alt="">
       <div slot="item-text">分类</div>
     </TabBarItem>
      <TabBarItem path="/cart" activeColor="orange">
       <img src="@/assets/img/tabbar/shopcart.svg" slot="item-icon" alt="">
       <img src="@/assets/img/tabbar/shopcart_active.svg" slot="item-icon-active" alt="">
       <div slot="item-text">购物车</div>
     </TabBarItem>
      <TabBarItem path="/profile" activeColor="blue">
       <img src="@/assets/img/tabbar/profile.svg" slot="item-icon" alt="">
       <img src="@/assets/img/tabbar/profile_active.svg" slot="item-icon-active" alt="">
       <div slot="item-text">我的</div>
     </TabBarItem>
   </TabBar>
</template>

<script>
//使用src的别名字@
import TabBar from '@/components/tabbar/TabBar'
import TabBarItem from '@/components/tabbar/TabBarItem'


export default {
 components: {
    TabBar,
    TabBarItem
  }
}
</script>

<style>

</style>